package com.srxz.personnelsystem.system.mapper.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @ClassName: DepartmentDTO
 * @author: wgchao
 * @createTime: 2019/1/23 3:36 PM
 * @Description: TODO
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DepartmentDTO implements Serializable {
    private String id;

    @Column
    private String name;//部门名称

    @Column
    private String parentcode;//部门编号

    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private String createUser;

    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date lastUpdateTime;

    private String lastUpdateUser;

    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date deleteTime;

    private String deleteUser;

    //附加
    private String createUserName;
    private String lastUpdateUserName;
    private String deleteUserName;

    private List<DepartmentDTO> childs;

    private List<PositionDTO> positionDTOS;//职位信息

    private List<UserInfoDTO> userInfoDTOS;//人员信息
}
